package com.d2.modules.system.permission.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.d2.modules.system.permission.entity.RoleResource;
import com.d2.modules.system.permission.mapper.IRoleResourceMapper;
import com.d2.modules.system.permission.service.IRoleResourceService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleResourceServiceImpl extends ServiceImpl<IRoleResourceMapper, RoleResource> implements IRoleResourceService {
    @Override
    public List<Long> queryResourceByUserId(Long userId) {
        return baseMapper.queryResourceByUserId(userId);
    }

    @Override
    public List<String> queryPermissionByUserId(Long userId) {
        return baseMapper.queryPermissionByUserId(userId);
    }
}
